import type { BaseResponse } from "@/api/index.d";
import service from "@/utils/service";

export const usePositionCreateApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/position/create`,
    method: "POST",
    data,
  });
};
export const usePositionDeleteApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/position/delete`,
    method: "POST",
    data,
  });
};
export const usePositionListApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/position/list`,
    method: "POST",
    data,
  });
};
export const usePositionPageApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/position/page`,
    method: "POST",
    data,
  });
};
export const usePositionUpdateApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/position/update`,
    method: "POST",
    data,
  });
};
